//
//  AdviceChooseCell.m
//  HZHome
//
//  Created by SunShine on 13-10-15.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import "AdviceChooseCell.h"

@implementation AdviceChooseCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configChooseSegment:(NSArray *)array
{
    [self.chooseSegment removeAllSegments];
    [self.chooseSegment insertSegmentWithTitle:[array objectAtIndex:0] atIndex:0 animated:NO];
    [self.chooseSegment insertSegmentWithTitle:[array objectAtIndex:1] atIndex:1 animated:NO];
    self.chooseSegment.selectedSegmentIndex = 0;
}

-(void)drawRect:(CGRect)rect
{
    [super drawRect:rect];
    self.starRating.starImage = [UIImage imageNamed:@"star.png"];
    self.starRating.starHighlightedImage = [UIImage imageNamed:@"starhighlighted.png"];
    self.starRating.maxRating = 5.0;
    self.starRating.editable=YES;
    self.starRating.displayMode=EDStarRatingDisplayFull;
    self.starRating.rating = 3.0;
    self.starRating.backgroundColor = [UIColor whiteColor];
}
@end
